package com.zm.api.openFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Component("orderFeign")          //服务名
@FeignClient(value = "order-server")
public interface OrderFeign {
    @RequestMapping("/createOrder/{userId}/{productId}")
    public Long Order(@PathVariable("userId") Long userId, @PathVariable("productId") Long productId);

    @RequestMapping("/createOrderTCC/{userId}/{productId}")
    public Long OrderTCC(@PathVariable("userId") Long userId,@PathVariable("productId") Long productId) ;
}
